package org.bot.api.event;

import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface DataStorage {

    void put(String index, Object data);

    Object get(String index);

    <T> List<T> getSource(Class<T> t);

    boolean containsKey(String index);

    JSONObject toJSONObject();
}
